package com.peanut.baby.mvp.mycontent;

import com.peanut.baby.model.QA;
import com.peanut.baby.mvp.BasePresenter;
import com.peanut.baby.mvp.BaseView;

import java.util.List;

/**
 * Created by anonymouslystudio on 2017/8/10.
 */

public interface QaContract {
    interface View extends BaseView{
        void onGetQAListSuccess(List<QA> qas);
        void onRequestFailed(String reason);
        void onPraiseSuccess(QA qa);
        void onPraiseFailed(String reason);
    }
    interface Presenter extends BasePresenter{
        void getQAList(String userId,int pageNo, int pageSize);
        void praiseQA(QA qa);
    }
}
